-- GENERATED SPELL FOR [Sunseeker Botanist] --


function spell0_18422(pUnit, Event) --@Nature\'s Rage,n/a--
pUnit:FullCastSpellOnTarget(34350,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18422', 10342, 1)
end

function spell1_18422(pUnit, Event) --@Regrowth,n/a--
pUnit:FullCastSpellOnTarget(34361,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18422', 17000, 1)
end

function spell2_18422(pUnit, Event) --@Regrowth,n/a--
pUnit:FullCastSpellOnTarget(39125,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18422', 17000, 1)
end

function spell3_18422(pUnit, Event) --@Rejuvenate Plant,n/a--
pUnit:FullCastSpellOnTarget(34254,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18422', 27000, 1)
end

function spell4_18422(pUnit, Event) --@Rejuvenate Plant,n/a--
pUnit:FullCastSpellOnTarget(39126,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18422', 27000, 1)
end

function Sorts_18422(pUnit, Event)
local choix_sorts_18422 = math.random(0, 4)
if choix_sorts_18422 == 0 then
pUnit:RegisterEvent('spell0_18422', 1, 1)
end
if choix_sorts_18422 == 1 then
pUnit:RegisterEvent('spell1_18422', 1, 1)
end
if choix_sorts_18422 == 2 then
pUnit:RegisterEvent('spell2_18422', 1, 1)
end
if choix_sorts_18422 == 3 then
pUnit:RegisterEvent('spell3_18422', 1, 1)
end
if choix_sorts_18422 == 4 then
pUnit:RegisterEvent('spell4_18422', 1, 1)
end
end

function mob18422_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18422', math.random(1500, 3000), 1)
end

function mob18422_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18422_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18422_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18422, 1, 'mob18422_Action')
RegisterUnitEvent(18422, 2, 'mob18422_Leave')
RegisterUnitEvent(18422, 3, 'mob18422_Kill')
RegisterUnitEvent(18422, 4, 'mob18422_Die')
